<?php
/*code here*/
/* Redirect user if they already logged */
if(!Auth::hasAuth('current_user'))
{
    $this->view->current_user = Auth::getAuth('current_user');

    header('location: /');
}

/* if user is not admin */
echo userLevelAuth();
/*code here(end)*/
$this->setLayout();